package com.sunni.repository;

import com.sunni.entity.Borrow;

import java.util.List;

public interface BorrowRepository {
    Integer insertBorrow(Integer bookId,Integer readId,String borrowTime,String returnTime,Integer adminId,Integer state);
    List<Borrow> findAllByReaderid(Integer readerId,Integer index,Integer LIMIT);
    Integer countBorrowByReaderid(Integer readerId);

    Integer countBorrowByState0(Integer state);
    List<Borrow> findAllByState0(Integer state0,Integer index,Integer LIMIT);
    Integer handleByBorrowid(Integer borrowId,Integer state,Integer adminId);
}
